package io;

import java.io.FileInputStream;
import java.io.IOException;

public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("fos.dat");//定义文件输入流
       /* int i1 = fis.read();//读取第一个字节
        System.out.println(i1);
        int i2 = fis.read();//读取第二个字节
        System.out.println(i2);//
        int i3 = fis.read();
        System.out.println(i3);
        int i4 = fis.read();
        System.out.println(i4);
        int i5 = fis.read();
        System.out.println(i5);*/
        int i = fis.read();
        System.out.println(i);
        fis.close();//关闭流

    }
}
